user_data = ["tzy","jojo","zyl"]# 全部用户
password_data = "123456"# 密码统一为123456
user_data_vip = ["tzy","zyl"]# VIP列表
# 会员用户能查看5次，非会员用户只能3次
# 登录错误次数最多为3次
import datetime
time = datetime.datetime.today().weekday()
# 登录次数3次

count = 3
while True:
    count = count-1 #每输一次减一次

    user_name = input("登录账户:")
    pass_word = input("登录密码；")
    # 1.判断账户

    if user_name in user_data:
        if user_name in user_data and user_name in user_data_vip:
            if pass_word == password_data:
                count = 5
                while True:
                    count -= 1
                    print("您是会员。")
                    print("您还有", count, "次查看机会")
                    week_time = int(time)
                    # week_time

                    if week_time == 1:
                        print("1-2毛概理论")
                        print("8-9大英Nikki老师~")
                        print("12-14数字多媒体作品创作")
                    elif week_time == 2:
                        print("1-2网页设计与制作")
                        print("8-9新媒体时代的新闻评论")
                        print("10-11网页设计与制作")
                    elif week_time == 3:
                        print("1-2大英Nikki老师~")
                        print("3-5融合新闻学")
                        print("12-14创业基础实践课")
                    elif week_time == 4:
                        print("3-5python")
                        print("8-9毛概实践")
                    elif week_time == 5:
                        print("周五没课啦啦啦 美美放松");
                    else:
                        print("周末继续休息")
                    break
                else:
                    if count == 0:
                        print("你都输入这么多次了，怎么还是错的呀，笨死了，5分钟后再来试试吧")
                        break
                    else:
                        print("您输入的账号或者密码不正确，请重新输入，您还有", count, "次机会~加油")